<?php
/**
 * [PHPFOX_HEADER]
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author			Raymond Benc
 * @package 		Phpfox
 * @version 		$Id: template.html.php 5844 2013-05-09 08:00:59Z Raymond_Benc $
 */
defined('PHPFOX') or exit('NO DICE!');
?>{if !PHPFOX_IS_AJAX_PAGE}
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="{$sLocaleDirection}" lang="{$sLocaleCode}">
    <head>
	<title>{title}</title>
	{header}
	{literal}
	<style>
	    .user_welcome_images{
		display: none;
	    }
	</style>
	{/literal}
        <link type="text/css" href="http://{param var='core.host'}{param var='core.folder'}cometchat/cometchatcss.php" rel="stylesheet" charset="utf-8">
	<script type="text/javascript" src="http://{param var='core.host'}{param var='core.folder'}cometchat/cometchatjs.php" charset="utf-8"></script>
    </head>
    <body>
	{body}	
	{block location='9'}
        {if !Phpfox::isUser()}
	<div class="hea-top">
            <div class="holder">
            SOCIAL MEDIA NETWORK
            </div><!--container-->
        </div>
        {/if}
        <div id="header" class="{if Phpfox::isUser()}hea-top{/if}">			
	    <div class="holder">
		{block location='10'}
		<div id="header_holder" {if !Phpfox::isUser()} class="header_logo"{/if}>				
		     <div id="header_left">
			{logo}
		    </div>
		    <div id="header_right">
			<div id="header_top">
			    {if Phpfox::isUser() && !Phpfox::getUserBy('profile_page_id')}
			    <div id="holder_notify">																	
				{notification}
				<div class="clear"></div>
			    </div>
			    {/if}
			    <div id="header_menu_holder">
				{if Phpfox::isUser()}
				{menu_account}
				<div class="clear"></div>	
                                {else}
				{module name='user.login-header'}
				{/if}							
			    </div>							
			    {if Phpfox::isUser() && !Phpfox::getUserBy('profile_page_id') && Phpfox::isModule('search')}
			    <div id="header_search">	
				<div id="header_menu_space">
				    <div id="header_sub_menu_search">
					<form method="post" id='header_search_form' action="{url link='search'}">																						
					    <input type="text" name="q" value="{phrase var='core.search_dot'}" id="header_sub_menu_search_input" autocomplete="off" class="js_temp_friend_search_input" />											
					    <div id="header_sub_menu_search_input"></div>
					    <a href="#" onclick='$("#header_search_form").submit();
						    return false;' id="header_search_button">{phrase var='core.search'}</a>											
					</form>
				    </div>
				</div>
			    </div>	
			    {/if}													
			</div>
		    </div>
		    {block location='6'}
		</div>
	    </div>

	    {if Phpfox::getParam('user.hide_main_menu') && !Phpfox::isUser()}

	    {else}
	    <div id="header_menu_page_holder">	
		<div class="holder">
		    <div id="header_menu">	
			<nav>			
			    {menu}
			</nav>
			<div class="clear"></div>
		    </div>		
		</div>			
	    </div>	
	    {/if}					
	</div>

	<div id="{if Phpfox::isUser()}main_core_body_holder{else}main_core_body_holder_guest{/if}">

	    {block location='11'}

	    <div id="main_content_holder">
		{/if}
		<div {holder_name}>		
		    <div {is_page_view} class="holder">	

			{module name='profile.logo'}						

			<div id="content_holder"{if isset($sMicroPropType)} itemscope itemtype="http://schema.org/{$sMicroPropType}"{/if}>		
			     {block location='13'}
			     {block location='7'}				
			     {if !defined('PHPFOX_IS_USER_PROFILE') && !defined('PHPFOX_IS_PAGES_VIEW')}
			     {breadcrumb}
			     {block location='12'}
			     {/if}

			     {if !$bUseFullSite && (count($aBlocks1) || count($aAdBlocks1)) || (isset($aFilterMenus) && is_array($aFilterMenus) && count($aFilterMenus))}					
			     <div id="left">
				{menu_sub}
				{block location='1'}
			    </div>					
			    {/if}

			    <div id="main_content">
				{if !defined('PHPFOX_IS_USER_PROFILE') && !defined('PHPFOX_IS_PAGES_VIEW')}
				{search}
				{/if}
				<div id="main_content_padding">

				    {if defined('PHPFOX_IS_USER_PROFILE') || defined('PHPFOX_IS_PAGES_VIEW') || (isset($aPage) && isset($aPage.use_timeline) && $aPage.use_timeline)}
				    {if $bLoadedProfileHeader = true}{/if}
				    {module name='profile.header'}
				    {/if}
				    {if defined('PHPFOX_IS_PAGES_VIEW') && !isset($bLoadedProfileHeader)}
				    {block location='12'}
				    {module name='pages.header'}
				    {/if}							

				    <div id="content_load_data">
					{if isset($bIsAjaxLoader) || defined('PHPFOX_IS_USER_PROFILE') || defined('PHPFOX_IS_PAGES_VIEW')}
					{search}
					{/if}								

					{if isset($aBreadCrumbTitle) && count($aBreadCrumbTitle)}
					<h1{if isset($sMicroPropType)} itemprop="name"{/if}><a href="{$aBreadCrumbTitle[1]}"{if isset($sMicroPropType)} itemprop="url"{/if}>{$aBreadCrumbTitle[0]|clean|split:30}</a></h1>
					{/if}

					<div id="content" {content_class}>
					    {error}
					    {block location='2'}
					    {content}
					    {block location='4'}
					</div>

					{if !$bUseFullSite && (count($aBlocks3) || count($aAdBlocks3))}
					<div id="right">								
					    {block location='3'}
					</div>
					{/if}

					<div class="clear"></div>							
				    </div>												
				</div>				
			    </div>
			    <div class="clear"></div>			
			</div>		
			{block location='8'}
		    </div>							
		</div>			
		{if !PHPFOX_IS_AJAX_PAGE}
	    </div>		
	    <div id="main_footer_holder">
		<div class="holder">
		    <div id="footer">
			<footer>		
			    <nav>
				{menu_footer}
			    </nav>					
			    <div id="copyright">
				{*copyright*}© 2013 Social Network
			    </div>
			    <div class="clear"></div>				
			    {block location='5'}
			</footer>
		    </div>				
		</div>			
	    </div>		
	    {footer}		
	</div>        
    </body>
</html>
{/if}